package cn.jbit.userdefineEnum;

/**
 * @author 张在成
 *
 * 自定义枚举类
 */
public class Season {

    private  final  String  seasonName;

    private  final  String  seasonDesc;
    
    public Season(String seasonName, String seasonDesc) {
        this.seasonName = seasonName;
        this.seasonDesc = seasonDesc;
    }

    public final static Season spring=new Season("春天","春暖花开");

    public final static Season summer=new Season("夏天","烈日炎炎");

    public final static Season  autum=new Season("秋天","硕果累累");

    public final static Season  winter=new Season("冬天","白雪皑皑");

    public String getSeasonName() {
        return seasonName;
    }

    public String getSeasonDesc() {
        return seasonDesc;
    }

    @Override
    public String toString() {
        return "Season{" +
                "seasonName='" + seasonName + '\'' +
                ", seasonDesc='" + seasonDesc + '\'' +
                '}';
    }


    public static void main(String[] args) {

        Season season=Season.autum;

        System.out.println(season);

    }

}
